Part Number Hot Search : 
XC4020XL 1N5226B 050SN1 BA3128N NDUCTOR PT331C P0331 D5N50
Product Description
Full Text Search
 

To Download AP77016-B01 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  user?s manual target devices pd77015 pd77016 pd77017 pd77018a pd77019 pd77110 pd77111 pd77112 pd77113 pd77113a pd77114 pd77115 sAP77016-B01 acoustic echo canceller middleware document no. u13130ej4v0um00 (4th edition) date published june 2001 n cp(k) printed in japan
user?s manual u13130ej4v0um 2 [memo]
user?s manual u13130ej4v0um 3 windows is either a trademark or registered trademark of microsoft corporation in the united states and/or other countries. m8e 00. 4 the information in this document is current as of april, 2001. the information is subject to change without notice. for actual design-in, refer to the latest publications of nec's data sheets or data books, etc., for the most up-to-date specifications of nec semiconductor products. not all products and/or types are available in every country. please check with an nec sales representative for availability and additional information. no part of this document may be copied or reproduced in any form or by any means without prior written consent of nec. nec assumes no responsibility for any errors that may appear in this document. nec does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of nec semiconductor products listed in this document or any other liability arising from the use of such products. no license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec or others. descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. the incorporation of these circuits, software and information in the design of customer's equipment shall be done under the full responsibility of customer. nec assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. while nec endeavours to enhance the quality, reliability and safety of nec semiconductor products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. to minimize risks of damage to property or injury (including death) to persons arising from defects in nec semiconductor products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment, and anti-failure features. nec semiconductor products are classified into the following three quality grades: "standard", "special" and "specific". the "specific" quality grade applies only to semiconductor products developed based on a customer-designated "quality assurance program" for a specific application. the recommended applications of a semiconductor product depend on its quality grade, as indicated below. customers must check the quality grade of each semiconductor product before using it in a particular application. "standard": com puters, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots "special": transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) "specific": aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc. the quality grade of nec semiconductor products is "standard" unless otherwise expressly specified in nec's data sheets or data books, etc. if customers wish to use nec semiconductor products in applications not intended by nec, they must contact an nec sales representative in advance to determine nec's willingness to support a given application. (note) (1) "nec" as used in this statement means nec corporation and also includes its majority-owned subsidiaries. (2) "nec semiconductor products" means any semiconductor product developed or manufactured by or for nec (as defined above). ? ? ? ? ? ?
user ? s manual u13130ej4v0um 4 regional information some information contained in this document may vary from country to country. before using any nec product in your application, piease contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. nec electronics inc. (u.s.) santa clara, california tel: 408-588-6000 800-366-9782 fax: 408-588-6130 800-729-9288 nec electronics (germany) gmbh duesseldorf, germany tel: 0211-65 03 02 fax: 0211-65 03 490 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.l. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics (germany) gmbh benelux office eindhoven, the netherlands tel: 040-2445845 fax: 040-2444580 nec electronics (france) s.a. velizy-villacoublay, france tel: 01-3067-5800 fax: 01-3067-5899 nec electronics (france) s.a. madrid office madrid, spain tel: 091-504-2787 fax: 091-504-2860 nec electronics (germany) gmbh scandinavia office taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. novena square, singapore tel: 253-8311 fax: 250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-2719-2377 fax: 02-2719-5951 nec do brasil s.a. electron devices division guarulhos-sp, brasil tel: 11-6462-6810 fax: 11-6462-6829 j01.2
user ? s manual u13130ej4v0um 5 major revisions in this edition page description p. 12 addition of pd77113a and deletion of pd77118, 77116 to/from 1.3.2 (1) target dsp p. 13 change of description in 1.3.4 directory structure the mark shows major revised points.
6 user?s manual u13130ej4v0um preface target readers this manual is intended for users who understand the functions of the pd77016 family and who will design application programs using this family of microcontrollers. the pd7701x family is the generic name for the pd7701x family ( pd77015, 77016, 77017, 77018a, and 77019) and pd77111 family ( pd77110, 77111, 77112, 77113, 77113a, 77114, and 77115). purpose the aim of this manual is to introduce readers to the basic functions of the pd77016 family by using application programs. note that programs and hardware configurations shown in this document are for educational purposes only, and are not intended for mass production. organization this manual provides explanations of basic numerical operation programs. chapter 1 introduction chapter 2 library specifications chapter 3 installation appendix sample source (sample.asm) how to read this manual it is assumed that readers of this manual have general knowledge in the fields of logic circuits and microcontrollers. to learn about the hardware functions of the pd7701x family, read pd7701x family architecture user?s manual . to learn about the hardware functions of the pd77111 family, read pd77111 family architecture user?s manual . to learn about the instruction functions of the pd77016 family, read pd77016 family instruction user?s manual . conventions data significance: higher digits on the left and lower digits on the right active low: (overscore over pin or signal name) note : footnote for item marked with note in the text caution : information requiring particular attention remark : supplementary information number representation: binary or 0b decimal hexadecimal 0x
user?s manual u13130ej4v0um 7 related documents the related documents indicated in this publication may include preliminary versions. however, preliminary versions are not marked as such. documents related to pd77016 family user?s manual application note document name part number pamphlet data sheet architecture instructions basic software pd77016 u10891e pd77015 pd77017 pd77018 u10902e pd77018a pd77019 u11849e pd77019-013 u13053e u10503e pd77110 pd77111 pd77112 u12801e pd77113a pd77114 u14373e pd77115 u12395e u14867e u14623e u13116e u11958e documents related to development tools document name document no. function u14397e rx77016 user?s manual configuration tool u14404e rx77016 application note host api u14371e caution the related documents listed above are subject to change without notice. be sure to use the latest version of each document for designing.
8 user?s manual u13130ej4v0um contents chapter 1 introduction...................................................................................................... ........... 11 1.1 middleware................................................................................................................ .................. 11 1.2 echo canceller ............................................................................................................ ............... 11 1.3 product overview.......................................................................................................... ............. 12 1.3.1 features ................................................................................................................ ...................... 12 1.3.2 operating environment ................................................................................................... ............. 12 1.3.3 performance ............................................................................................................. ................... 13 1.3.4 directory structure ..................................................................................................... .................. 13 chapter 2 library specifications ........................................................................................... . 14 2.1 echo cancellation processing flow ........................................................................................ 1 4 2.2 function specifications................................................................................................... .......... 15 2.2.1 memory structure........................................................................................................ ................. 15 2.2.2 macro ................................................................................................................... ....................... 16 2.2.3 aec_initialize function ................................................................................................. ................. 17 2.2.4 aec_echocancel function ................................................................................................. ........... 18 2.2.5 aec_getversion function ................................................................................................. ............ 19 2.3 characteristics ........................................................................................................... ................ 20 2.4 cautions .................................................................................................................. .................... 21 chapter 3 installation ...................................................................................................... ............ 22 3.1 installation procedure.................................................................................................... ............ 22 3.2 sample creation procedure ................................................................................................. ..... 22 3.3 change of location........................................................................................................ ............ 24 3.4 symbol naming regulations ................................................................................................. ... 24 appendix sample source (sample.asm)...................................................................................... 25
user?s manual u13130ej4v0um 9 list of figures figure no. title page 1-1 concept of echo canceller ................................................................................................... ......................... 11 2-1 application process ......................................................................................................... .............................. 14 2-2 characteristics measuring configuration diagram ............................................................................. ........... 20 3-1 sample program evaluation system ............................................................................................ ................. 23
10 user?s manual u13130ej4v0um list of tables table no. title page 1-1 performance of sAP77016-B01................................................................................................................... 13 2-1 symbol name and memory size when using aec_createbuffer macro......................................................16 2-2 measuring conditions of characteristics..................................................................................... ...................20 3-1 section names ............................................................................................................... ...............................24 3-2 symbol names................................................................................................................ ...............................24
user?s manual u13130ej4v0um 11 chapter 1 introduction 1.1 middleware middleware is the name given to a group of software that has been tuned so that it draws out the maximum performance of the processor and enables processing that is conventionally performed by hardware to be performed by software. the concept of middleware was introduced with the development of a new high-speed processor, the dsp, in order to facilitate operation of the environments integrated in the system. by providing appropriate voice codec and image data compression/decompression-type middleware, nec is offering users the kind of technology essential in the realization of a multimedia system for the pd77016 family, and is continuing its promotion of system development. the product introduced here is middleware that supplies the functions of an acoustic echo canceller. 1.2 echo canceller the echo canceller contains functions to calculate the acoustic echo generated during hands-free telephoning (the echo generated by the environment in which the hands-free telephone system is being used), and eliminate just the echo element from the voice signal (which is made up of echo + voice + noise) on the receiving side. the applications where the echo canceller is thought to be most effective include hands-free systems such as in- car telephoning and video conferencing. figure 1-1. concept of echo canceller hello noise echo canceller echo reference input signal output signal adaptive filter
chapter 1 introduction 12 user?s manual u13130ej4v0um 1.3 product overview 1.3.1 features ? employment of strong echo cancel algorithms for noise level fluctuation using an nec original technique ? all voice i/o data (reference input signal, echo, output signal) is 16-bit linear data ? full-duplex system echo canceller ? appropriate-learning-type environment adaptability ? echo elimination time freely settable ? supports windows? based workbench for pd77016 starter kit (wb77016 ver2.21) 1.3.2 operating environment (1) target dsp pd77015, 77016, 77017, 77018a, 77019, 77110, 77111, 77112, 77113, 77113a, 77114, 77115 (2) required memory size size (words) usage instruction rom x data ram y data ram total program code 249 ? ? 249 coefficient table buffer ? 1 [word/tap] 1 [word/tap] 2 [word/tap] delay buffer ? 1 [word/tap] ? 1 [word/tap] work memory ? ? 19 19 remarks 1. in addition, yram or yrom requires 24 words to store a copy write. 2. the memory size of the coefficient table buffer and delay buffer indicates size per tap. example: when the number of taps is 512 coefficient table size: 1[word/tap] 512 taps 2 = 1024 [words] delay buffer size: 1[word/tap] 512 taps = 512 [words] (3) supported a/d, d/a specs a/d 2 channels d/a 1 channel 16-bit resolution (4) software tools dsp tools: wb77016 ver2.21 (windows based) wb77016 for pd77016 starter kit ver2.21sk (windows based)
chapter 1 introduction user?s manual u13130ej4v0um 13 1.3.3 performance the performance of the sAP77016-B01 is shown below. table 1-1. performance of sAP77016-B01 operating environment dsp: pd77016 (operation frequency: 33 mhz) number of taps: 512 sampling frequency fs = 8 khz performance ? when used in a real-world setting (for example, in a car) echo cancel processing time = about 68.88 [ s] number of taps 4 [cycles] (number of memory waits + 1) + (170 to 259) [cycles] echo elimination amount 30 [db] (typ.) echo elimination time 64 [ms] 1.3.4 directory structure the contents of the packages are shown below. sample.asm: library header file macro file header file user definition file library for pd77016 family except above (for rom) library for pd77016, 77110, and 77115 (for ram) sample source project file sample.prj: aec aec01x.lib: aec016.lib: upd7701x.h: userown.h: upd7701x.mac: aec_lib.h: \ smp lib
14 user?s manual u13130ej4v0um chapter 2 library specifications 2.1 echo cancellation processing flow the processing flow when the reference signals and the echo signal are input to the pd77016 family serial interfaces (sio1, sio2) is shown below. figure 2-1. application process start process ends? voice input/output completion processing ? ad/da completion setting ? interrupt disable, etc. voice input/output initialization processing ? reset ad/da ? interrupt enable, etc. echo cancellation processing call aec_echocancel echo/reference data input processing echo elimination data output processing echo canceller initialization call aec_initialize yes voice data input/output processing interrupt handler no end
chapter 2 library specifications user?s manual u13130ej4v0um 15 2.2 function specifications 2.2.1 memory structure the following is an explanation of the structure of the memory required by this library. ? coefficient table buffer the area to which the learned coefficients are saved. each coefficient is 32 bits long, and the higher and lower 16 bits are divided and saved to the x and y memory areas, respectively. the size of the coefficient table depends on the number of taps. example _ _ aec_work_x xramseg ch1_al_buff: ds tapnum ; 32bit coefficient of low word _ _ aec_work_y yramseg ch1_ah_buff: ds tapnum ; 32bit coefficient of high word ? delay buffer the area to which the reference signals input to the echo canceller are saved. secure x memory space for the delay buffer and align the first address of the secured area with the number of taps note . the size of the delay buffer depends on the number of taps. note when the number of taps is 2 n (512, 256, 128, ?) align with 2 n when the number of taps is 2 n + (500, 300, 200, etc.) align with 2 n+1 example _ _ aec_work_x xramseg align at tapnum ch1_z_buff: ds tapnum ; z buffer ? work memory the area to which the statuses of the echo canceller are saved. secure 19 words of the y memory space for the work memory. example _ _ aec_work_y yramseg ch1: ds 19 ; work memory cautions 1. take care to avoid destroying the coefficient table buffer, delay buffer, and work memory areas while operating the echo canceller after calling the aec_initialize function. normal operation of this library cannot be guaranteed if these areas are destroyed. 2. neither of the coefficient table areas (higher 16 bits, lower 16 bits) can be allocated to external memory.
chapter 2 library specifications 16 user?s manual u13130ej4v0um 2.2.2 macro the macro used by this library is defined by aec_lib.h. to use this macro, aec_lib.h must be included. ? aec_createbuffer macro the aec_createbuffer macro secures and declares the 1 channel of memory area required for echo cancellation processing. accordingly, when configuring multiple channels, declare this macro for the required number of channels only. [classification] securing memory [function name] aec_createbuffer [summary of function] secures 1 channel of memory area. [format] %aec_createbuffer(name,tapnum) [arguments] type argument description word name symbol name word tapnum number of taps [return value] none [function] allocates the delay buffer, coefficient table, and work memory from the memory. example when the aec_createbuffer macro is declared with a setting whereby the symbol name = ch1 and the tap number is 256: %aec_createbuffer(ch1, 256) the symbol names and memory sizes when the aec_createbuffer macro is used are as follows. table 2-1. symbol name and memory size when using aec_createbuffer macro symbol name size[words] x/y description ch1_z_buff 256 x delay buffer area ch1_al_buff 256 x coefficient table area (lower 16 bits) ch1_ah_buff 256 y coefficient table area (higher 16 bits) ch1 19 y work memory first address
chapter 2 library specifications user?s manual u13130ej4v0um 17 2.2.3 aec_initialize function the aec_initialize function initializes the coefficient settings, coefficient table, and delay buffer. the aec_initialize function performs initialization processing on 1 channel. to initialize multiple channels, call the aec_initialize function for each channel individually. [classification] echo canceller initialization processing [function name] aec_initialize [summary of function] initializes the ram area used for the echo canceller and sets parameters. [format] call aec_initialize [arguments] type argument description register r0l number of taps (elimination time sampling frequency) register r1l step size (learning amount) register r2l coefficient (0 to 8) register r3l coefficient (0.99 to 0.999) register dp0 coefficient table first address (low word) register dp1 delay buffer first address register dp4 coefficient table first address (high word) register dp5 work memory first address [return value] none [function] initializes this library, makes parameter settings, etc. [registers used] r0, r1, r2, r3, dp0, dp1, dp4, dp5 [loop stack levels] 1 level used [stack levels] 0 levels used caution the echo canceller may not be able to perform normal processing if values outside the allowable range are set for the and coefficients. remark if the voice after processing is distorted due to excessive noise, either make the step size smaller, or the coefficient larger. if convergence is slow, either make the step size larger, or the coefficient smaller. if the variation in the power of the noise is extreme, make the coefficient smaller (but within the range of 0.990 to 0.999). the recommended values for the step size, and and coefficients are as follows. step size = 0.1 coefficient = 5 coefficient = 0.995
chapter 2 library specifications 18 user?s manual u13130ej4v0um 2.2.4 aec_echocancel function the aec_echocancel function creates an echo-free signal by eliminating the echo from the echo and reference signals. [classification] echo cancellation processing section [function name] aec_echocancel [summary of function] performs echo cancellation processing on signals that include echo. [format] call aec_echocancel [arguments] type argument description register r0h echo signal (16-bit linear pcm) register r1h reference signal (16-bit linear pcm) register dp0 coefficient table first address (low word) register dp1 delay buffer first address register dp4 coefficient table first address (high word) register dp5 work memory address [return value] type argument description register r0h signal after eliminating echo (16-bit linear pcm) [function] creates a signal from which the echo has been eliminated by creating a replica echo from the reference signal and removing the replica echo signal from the echo signal. [registers used ] r0, r1, r2, r3, r4, r5, dp0, dp1, dp4, dp5, dn1, dmx [loop stack levels] 1 level used [stack levels] 0 levels used
chapter 2 library specifications user?s manual u13130ej4v0um 19 2.2.5 aec_getversion function the aec_getversion function returns the version information of this library. [classification] echo canceller version information acquisition function [function name] aec_getversion [summary of function] returns the version information. [format] call aec_getversion [arguments] none [return value] type return value description register r0h major version number register r0l minor version number [function] returns the version number of this library as a 32-bit value. example when r0 = 0x00?0x0001?0x0100: version: v1.01 [registers used] r0 [loop stack levels] 0 levels used [stack levels] 0 levels used
chapter 2 library specifications 20 user?s manual u13130ej4v0um 2.3 characteristics the characteristics of the amount of echo eliminated (erle) from this library?s reference signal and echo signal levels are shown below. 0 10 20 30 40 50 0 -10 -20 -30 -40 -50 echo signal level vs. erle characteristics 0 10 20 30 40 50 0 -10 -20 -30 -40 -50 echo signal level [db] erle [db] table 2-2. measuring conditions of characteristics reference signal level vs erle echo signal level vs erle reference signal 4-khz band white noise the average power of white noise is 5.87 10 7 (average value: 7660) with a 16-bit quantized value (?32768 to 32767). delay time [ms] 2 att1 [db] 0 to ?50 0 att2 [db] 0 0 to ?50 figure 2-2. characteristics measuring configuration diagram 4-khz band white noise delay device att1 att2 echo elimination signal echo signal reference signal sAP77016-B01
chapter 2 library specifications user?s manual u13130ej4v0um 21 2.4 cautions ? set the return amount of the echo included in the echo signal so that it attenuates. if the return amount is amplified, it will be impossible to eliminate the echo. ? set the level of the reference signal so that it does not overflow at codec. ? do not input a tone signal (dtmf signal etc.) for the reference signal. if a tone signal is input, the amount of echo cancelled will be reduced. ? if the variation of the echo path note is extreme, the echo canceller will have trouble converging the learning of the echo path. ? if the echo canceller is used in a noisy environment, converging the learning of the echo path may take longer than when the echo canceller is used in a noise-free environment. note echo path: the path along which the voice is reflected and returns.
22 user?s manual u13130ej4v0um chapter 3 installation 3.1 installation procedure the sAP77016-B01 is supplied on a 3.5-inch floppy disk (1.44 mb). the procedure for installing the sap77016- b01 in the host machine is outlined below. (1) set the floppy disk in the floppy disk drive and copy the files to the directory where software tools are used (e.g. c:\dsptools). the following is an example of when files are copied from the a drive to the c drive. (2) confirm that the files have been copied. refer to 1.3.4 directory structure for details on the directories. 3.2 sample creation procedure the sample program is stored in the smp directory. refer to appendix sample source (sample.asm) for details on the sample.asm source program. with the sample program is it possible to connect a microphone, speakers, etc. and evaluate a hands-free system. note that the sample program operates with the pd77016 starter kit. a:\>xcopy /s *.* c:\dsptools a:\>dir c:\dsptools
chapter 3 installation user?s manual u13130ej4v0um 23 figure 3-1. sample program evaluation system the following is an explanation of how to build the sAP77016-B01 sample program. (1) start up the wb77016. (2) open the sample.prj project file. example specify c:\dsptools\smp\aec\sample.prj with the open project command on the project menu. (3) execute build and confirm that sample.lnk has been created. example the sample.lnk file can be created by selecting the build all command from the make menu. (4) execute the sample program by downloading it to the target system using the starter kit debugger (ie77016s.exe). cautions 1. use the starter kit workbench to create the sample file. 2. because the file structure of the project file (sample.prj) is specified via an absolute path, if the library has been installed in a directory other than ?c:\dsptools?, it is necessary to reset the file structure. speaker microphone mobile terminal pd77016 starter kit r channel l channel r channel l channel line output codec dsp line input
chapter 3 installation 24 user?s manual u13130ej4v0um 3.3 change of location the section names shown in table 3-1 below have been attached in this library. the locations can be changed to accord with the user?s target system. table 3-1. section names section name type description _ _ aec_work_x xramseg x memory area data ram _ _ aec_work_y yramseg y memory area data ram _ _ aec_copyright_y yromseg/yramseg copyright storage area _ _ aec_lib iromseg/iramseg echo canceller program 3.4 symbol naming regulations the symbols used in this library are named according to the following regulations. take care not to duplicate these names when using the sAP77016-B01 in combination with another application. table 3-2. symbol names classification regulation function aec_xxxx macro, constant aecxxxx
user?s manual u13130ej4v0um 25 appendix sample source (sample.asm) /*----------------------------------------------------------------------*/ /* file information */ /*----------------------------------------------------------------------*/ /* name : sample.asm */ /* type : assembler program module */ /* version : 1.00a */ /* date : 1997 jan 14 */ /* cpu : upd7701x family */ /* assembler : wb77016 */ /* about :nec upd7701x family middle-ware */ /* sample program of echo canceller library */ /*----------------------------------------------------------------------*/ /* copyright (c) nec corporation 1996 */ /* nec confidential and proprietary */ /* all rights reserved by nec corporation. */ /* use of copyright notice does not evidence publication */ /*----------------------------------------------------------------------*/ #include "aec_lib.h" #include "userown.h" #include "upd7701x.mac" /* ========================================================================= * define codec(upd63310) control register * ====================================================================== */ #define codec_ctl *0x4000:x #define cgain_adr *0x8000:x #define cgain_dat *0x8001:x /* ========================================================================= * define echo canceller status * ====================================================================== */ #define taps 512 #define u0 0.1 #define alfa 5 #define beta 0.995 /* ========================================================================= * allocate echo canceller buffer * ====================================================================== */ %aec_createbuffer(ch1, taps); /* ========================================================================= * allocate work buffer * ====================================================================== */ work_y yramseg r0tmp: ds 3 cnt: ds 1 flag: ds 1 echo: ds 1 ref: ds 1 err: ds 1 #define cnt *cnt:y #define flag *flag:y
appendix sample so urce (sample.asm) 26 user?s manual u13130ej4v0um #define echo *echo:y #define ref *ref:y #define err *err:y /* ========================================================================= * vector registration * ====================================================================== */ %beginvector(startup) ;regist start up routine %notusevector(vectorint1) ; %notusevector(vectorint2) ; %notusevector(vectorint3) ; %notusevector(vectorint4) ; %registvector(vectorsi1, si1handler) ;regist si1 handler %notusevector(vectorso1) ; %notusevector(vectorsi2) ; %notusevector(vectorso2) ; %notusevector(vectorhi) ; %notusevector(vectorho) ; %endvector /* ========================================================================= * sample programe code section * ====================================================================== */ sample_code imseg at 0x240 startup: ;;=================================================================;; ;; initialize register & peripheral units ;; ;;=================================================================;; %clearallregister ;clear all upd7701x register %setiwtr(0x0054) ;set instruction rom/ram wait cycle %setdwtr(0x3c3c) ;set data rom/ram wait cycle %setport(p0_out_mode|p0_l_level) ;set p0 output mode & low level %setport(p1_out_mode|p1_l_level) ;set p1 output mode & low level %setport(p2_in_mode) ;set p2 output mode & low level %setport(p3_in_mode) ;set p3 input mode ;;=================================================================;; ;; initialize codec chip(upd63310) ;; ;;=================================================================;; clr(r0) ; clr(r1) ; r1l = 0x0002 ; cgain_adr = r0l ;ch1-l nop ; cgain_dat = r1l ; r0l = 0x0001 ;ch1-r cgain_adr = r0l ; nop ; cgain_dat = r1l ; r0l = 17 ;out-l cgain_adr = r0l ; r0l = 0x0001 ; cgain_dat = r0l ; r0l = 18 ;out-r cgain_adr = r0l ; r0l = 0x0001 ; cgain_dat = r0l ; r0l = 0x000f ; codec_ctl = r0l ;
appendix sample so urce (sample.asm) user?s manual u13130ej4v0um 27 ;;==============================================================;; ;; initialize echo cannceller module ;; ;;==============================================================;; r0l = taps ;initialize echo cancel module r1l = u0 ; r2l = alfa ; r3l = beta ; dp0 = ch1_al_buff ; dp4 = ch1_ah_buff ; dp1 = ch1_z_buff ; dp5 = ch1 ; call aec_initialize ; ;;==============================================================;; ;; initialize work/flag memory ;; ;;==============================================================;; clr(r0) ; cnt = r0l ; flag = r0l ; echo = r0l ; ref = r0l ; ;;==============================================================;; ;; initialize serial i/f ;; ;;==============================================================;; r0l = 0x0200 ;initialize serial i/f 1 *sst1:x = r0l ; %disablemask(sr_all) ;disable all interrupt mask %enablemask(sr_si1) ;enable si1 interrupt mask %enableinterrupt ;enable interrupt ;;==============================================================;; ;; main routine ;; ;;==============================================================;; loop1: nop ;wait echo canceller start flag r0 = flag ; if(r0 == 0) jmp loop1 ; r0 = echo ;set echo signal to r0 r1 = ref ;set reference signal to r1 dp0 = ch1_al_buff ;set coefficient table start address dp4 = ch1_ah_buff ; dp5 = ch1 ;set aecinfo struck start address call aec_echocancel ;echo cancel process err = r0h ;get echo removabled signal clr(r0) ; flag = r0h ; jmp loop1 ; ;;==============================================================;; ;; si1 handler ;; ;;==============================================================;; si1handler: *r0tmp+0:y = r0l ;save work register of r0 *r0tmp+1:y = r0h ; *r0tmp+2:y = r0e ; r0l = *pdt:x ;if p3 is low level, no echo canceller. r0 = r0 & 0x0008 ; if(r0 == 0) jmp no_cancel ;
appendix sample so urce (sample.asm) 28 user?s manual u13130ej4v0um clr(r0) ;echo cancel process r0l = cnt ; r0 = r0 ^ 0x0001 ; cnt = r0l ; if(r0 == 0) jmp r_channel ; l_channel: r0 = *sdt1:x ;get l-channel signal echo = r0h ;save echo signal r0 = err ;load output signal jmp si1_end ; r_channel: r0 = flag ; if(r0 == 0) jmp no_error ; %setport(p0_h_level) ; no_error: r0 = *sdt1:x ;get r-channel signal ref = r0h ;save reference signal r0l = *pdt:x ; r0 = r0 & 0x0004 ; if(r0 != 0) jmp $+3 ; r0h = err ; jmp $+2 ; r0h = ref ; r0l = 0x0001 ;set echo canceller start flag flag = r0l ; si1_end: *sdt1:x = r0h ;output signal r0e = *r0tmp+2:y ;save work register of r0 r0h = *r0tmp+1:y ; r0l = *r0tmp+0:y ; reti ; no_cancel: ;no cancel process clr(r0) ; r0l = cnt ; r0 = r0 ^ 0x0001 ; cnt = r0l ; if(r0 == 0) jmp r_channel2 ; r0 = *sdt1:x ;get l-channel signal echo = r0h ; jmp si1_end ; r_channel2: r0 = *sdt1:x ;get r-channel signal ref = r0h ; r0h = echo ; jmp si1_end ; end
user?s manual u13130ej4v0um 29 [memo]
30 user?s manual u13130ej4v0um [memo]
although nec has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that errors may occur. despite all the care and precautions we?ve taken, you may encounter problems in the documentation. please complete this form whenever you?d like to report errors or suggest improvements to us. hong kong, philippines, oceania nec electronics hong kong ltd. fax: +852-2886-9022/9044 korea nec electronics hong kong ltd. seoul branch fax: +82-2-528-4411 taiwan nec electronics taiwan ltd. fax: +886-2-2719-5951 address north america nec electronics inc. corporate communications dept. fax: +1-800-729-9288 +1-408-588-6130 europe nec electronics (europe) gmbh technical documentation dept. fax: +49-211-6503-274 south america nec do brasil s.a. fax: +55-11-6462-6829 asian nations except philippines nec electronics singapore pte. ltd. fax: +65-250-3583 japan nec semiconductor technical hotline fax: +81- 44-435-9608 i would like to report the following error/make the following suggestion: document title: document number: page number: thank you for your kind support. if possible, please fax the referenced page or drawing. excellent good acceptable poor document rating clarity technical accuracy organization cs 01.2 name company from: tel. fax facsimile message


▲Up To Search▲   

 
Price & Availability of AP77016-B01

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X